﻿<%@ Page Theme="Default" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SlideShow.aspx.cs" Inherits="webapp4U.UI._Default" %>
<%@ Import Namespace="webapp4U" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register Src="~/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

<uc:Title runat="server" ID="Title" />

<table border="0" cellpadding="4" cellspacing="0" width="500px" align="center">
<tr>
    <td align="center" height="250px" valign="top">
        <img border="0" id="imageSlides2" style="filter: revealTrans(duration=2,transition=5); border: 0px solid red" title="Slide Show">
        <script language="javascript">
        
            var imgArray2 = new Array;
            
            <%
              int stt2 = 0;
              string jscript2 = "";
              int BosuutapID = Globals.GetIntFromQueryString("BosuutapID");
                
              List<webapp4U.BOL.SlideShow> list = webapp4U.BOL.SlideShow.GetSlideShowByBosuutapID(BosuutapID,1,1000);
              foreach (webapp4U.BOL.SlideShow f in list)
              {
                  jscript2 += "imgArray2[" + stt2 + "]='" + Globals.ApplicationPath +
                     "Bosuutap/Image.ashx?Size=L2&ImageUrl=" + f.ImageUrl + "$$$;'";
                  jscript2 += "\n";
                  stt2 = stt2 + 1;
              }
              
              Response.Write(jscript2);
            %>
                        
            var currImg2 = parseInt(Math.random()* parseInt(<%=stt2%>) );
            var ns2=(navigator.appName.indexOf("Netscape")!=-1);
            var img2=document.getElementById('imageSlides2');
            doTransslide2(currImg2);
            
            function doTransslide2()
            {
                if (currImg2==imgArray2.length) 
                    currImg2=0;
                                        
                if(navigator.appName=="Microsoft Internet Explorer")
                {
                    var part2=imgArray2[currImg2].split("$$$");
                    var srcimage2=part2[0];
                    var url2=part2[1];
                    img2.filters[0].apply();
                    document.images[img2.id].src=srcimage2;
                    document.images[img2.id].alt=url2;
                    document.getElementById(img2.id).filters[0].transition = 23;
                    document.getElementById(img2.id).filters[0].play();
                }
                else
                {
                    var ImageURL2=imgArray2[currImg2].split("$$$").toString();
                    ImageURL2=ImageURL2.replace(";","").replace(",","");
                    document.images[img2.id].src=ImageURL2;
                }
                
                currImg2 = parseInt(Math.random()* parseInt(<%=stt2 %>) );
            }
            
            setInterval('doTransslide2()',7000);
        </script>

    </td>
    </tr>
<tr>
        <td style="font-weight:bold; color:#e93794">
            <%=ResourceManager.GetString("Company_Information") %>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <table width="100%" align="center" cellpadding="7" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#999999" border="1">
                <tr>
                    <td align="right" width="130px" style="font-weight:bold">
                        <%=ResourceManager.GetString("Register_CompanyName")%>
                        :</td>
                    <td>
                        <asp:Label runat="server" ID="lblCompanyName"></asp:Label>
                    </td>
                </tr>
              
                <tr>
                    <td align="right" style="font-weight:bold">
                        
                        <%=ResourceManager.GetString("Register_Address")%>
                        :</td>
                    <td>
                        <asp:Label runat="server" ID="lblAddress"></asp:Label>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight:bold"> 
                        
                        <%=ResourceManager.GetString("Register_ContactPhone")%>
                        :</td>
                    <td>
                        <asp:Label runat="server" ID="lblPhone"></asp:Label>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight:bold">
                        &nbsp;
                        <%=ResourceManager.GetString("Register_FaxNumber")%>
                        :</td>
                    <td>
                        <asp:Label runat="server" ID="lblFax"></asp:Label>&nbsp;
                    </td>
                </tr>
                
                <tr>
                    <td align="right" style="font-weight:bold">
                        <%=ResourceManager.GetString("Register_Email")%>
                        :</td>
                    <td>
                        <asp:Label runat="server" ID="lblEmail"></asp:Label>&nbsp;
                    </td>
                </tr>
                
                <tr>
                    <td valign="top" align="right" style="font-weight:bold">
                        <%=ResourceManager.GetString("Company_Description") %>
                        :</td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label runat="server" ID="lblDesc"></asp:Label>&nbsp;
                    </td>
                </tr>
            </table>
        </td>
    </tr>
  </table>
                                  
</asp:Content>

